<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Generator" content="ECSHOP v2.7.2" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="<?php echo $this->_var['keywords']; ?>" />
<meta name="Description" content="<?php echo $this->_var['description']; ?>" />

<title><?php echo $this->_var['page_title']; ?></title>


<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link href="<?php echo $this->_var['ecs_css_path']; ?>" rel="stylesheet" type="text/css" />

<?php echo $this->smarty_insert_scripts(array('files'=>'common.js,global.js,compare.js')); ?>
</head>
<body>
<?php echo $this->fetch('library/page_header.lbi'); ?>
<?php echo $this->fetch('library/search_form.lbi'); ?>
<?php echo $this->fetch('library/ur_here.lbi'); ?>

<div class="block clearfix">
  
	<div id="left">
	
	  <?php echo $this->fetch('library/category_tree.lbi'); ?>
		<?php echo $this->fetch('library/brands.lbi'); ?>
		<?php echo $this->fetch('library/history.lbi'); ?>
		<?php echo $this->fetch('library/promotion_info.lbi'); ?>
		<?php echo $this->fetch('library/top10.lbi'); ?>
	
	</div>
	
	
	<div id="right">
	<?php echo $this->fetch('library/exchange_hot.lbi'); ?>
	  
	
    <script type="text/javascript">
      window.onload = function()
      {
        Compare.init();
        fixpng();
      }
      var button_compare = '';
    </script>
    <div class="goodsListTit clearfix">
          <span><?php echo $this->_var['lang']['goods_list']; ?></span>
          <form method="GET" class="sort f_r" name="listform">
            <?php echo $this->_var['lang']['btn_display']; ?>：
            <a href="javascript:;" onClick="javascript:display_mode('list')"><img src="themes/360/images/display_mode_list<?php if ($this->_var['pager']['display'] == 'list'): ?>_act<?php endif; ?>.gif" alt="<?php echo $this->_var['lang']['display']['list']; ?>"></a>
            <a href="javascript:;" onClick="javascript:display_mode('grid')"><img src="themes/360/images/display_mode_grid<?php if ($this->_var['pager']['display'] == 'grid'): ?>_act<?php endif; ?>.gif" alt="<?php echo $this->_var['lang']['display']['grid']; ?>"></a>
            <a href="javascript:;" onClick="javascript:display_mode('text')"><img src="themes/360/images/display_mode_text<?php if ($this->_var['pager']['display'] == 'text'): ?>_act<?php endif; ?>.gif" alt="<?php echo $this->_var['lang']['display']['text']; ?>"></a>&nbsp;&nbsp;
            <select name="sort" style="border:1px solid #ccc;">
            <?php echo $this->html_options(array('options'=>$this->_var['lang']['exchange_sort'],'selected'=>$this->_var['pager']['sort'])); ?>
            </select>
            <select name="order" style="border:1px solid #ccc;">
            <?php echo $this->html_options(array('options'=>$this->_var['lang']['order'],'selected'=>$this->_var['pager']['order'])); ?>
            </select>
            <input type="image" name="imageField" src="themes/360/images/bnt_go.gif" alt="go" style="position:relative; top:3px;" />
            <input type="hidden" name="category" value="<?php echo $this->_var['category']; ?>" />
            <input type="hidden" name="display" value="<?php echo $this->_var['pager']['display']; ?>" id="display" />
            <input type="hidden" name="integral_min" value="<?php echo $this->_var['integral_min']; ?>" />
            <input type="hidden" name="integral_max" value="<?php echo $this->_var['integral_max']; ?>" />
            <input type="hidden" name="page" value="<?php echo $this->_var['pager']['page']; ?>" />
          </form>
    </div>
		
	<div class="clearfix">	
  <form name="compareForm" method="post">
        <?php if ($this->_var['pager']['display'] == 'list'): ?>
          <div class="goodsList">
						<?php $_from = $this->_var['goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');$this->_foreach['goods_list'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['goods_list']['total'] > 0):
    foreach ($_from AS $this->_var['goods']):
        $this->_foreach['goods_list']['iteration']++;
?>
						<ul class="clearfix bgcolor"<?php if (($this->_foreach['goods_list']['iteration'] - 1) % 2 == 0): ?>id=""<?php else: ?>id="bgcolor"<?php endif; ?>>
						<li class="thumb"><a href="<?php echo $this->_var['goods']['url']; ?>"><img src="<?php echo $this->_var['goods']['goods_thumb']; ?>" alt="<?php echo $this->_var['goods']['goods_name']; ?>" /></a></li>
						<li class="exchangeGoodName">
						<a href="<?php echo $this->_var['goods']['url']; ?>">
								<?php if ($this->_var['goods']['goods_style_name']): ?>
								<font class="f3"><?php echo $this->_var['goods']['goods_style_name']; ?></font><br />
								<?php else: ?>
								<font class="f3"><?php echo $this->_var['goods']['goods_name']; ?></font><br />
								<?php endif; ?>
						</a>
						 <?php if ($this->_var['goods']['goods_brief']): ?>
						<?php echo $this->_var['lang']['goods_brief']; ?><?php echo $this->_var['goods']['goods_brief']; ?><br />
						<?php endif; ?>
						</li>
						<li>
						<?php echo $this->_var['lang']['exchange_integral']; ?><font class="price"><?php echo $this->_var['goods']['exchange_integral']; ?></font>
						</li>
						</ul>
						<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
        </div>

        <?php elseif ($this->_var['pager']['display'] == 'grid'): ?>
				 <?php $_from = $this->_var['goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');if (count($_from)):
    foreach ($_from AS $this->_var['goods']):
?>
          <?php if ($this->_var['goods']['goods_id']): ?>
          <div class="goodsMod goodsModH220">
           <a href="<?php echo $this->_var['goods']['url']; ?>"><img src="<?php echo $this->_var['goods']['goods_thumb']; ?>" alt="<?php echo $this->_var['goods']['goods_name']; ?>"/></a><br />
           <p><a href="<?php echo $this->_var['goods']['url']; ?>" title="<?php echo htmlspecialchars($this->_var['goods']['name']); ?>"><?php echo $this->_var['goods']['goods_name']; ?></a></p>
						<?php echo $this->_var['lang']['exchange_integral']; ?><font class="price"><?php echo $this->_var['goods']['exchange_integral']; ?></font><br />
          </div>
					 <?php endif; ?>
          <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>

        <?php elseif ($this->_var['pager']['display'] == 'text'): ?>
          <div class="goodsList">
					<?php $_from = $this->_var['goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');if (count($_from)):
    foreach ($_from AS $this->_var['goods']):
?>
					 <ul class="clearfix bgcolor"<?php if (($this->_foreach['goods_list']['iteration'] - 1) % 2 == 0): ?>id=""<?php else: ?>id="bgcolor"<?php endif; ?>>
					 <li class="exchangeGoodName">
						<a href="<?php echo $this->_var['goods']['url']; ?>">
							<?php if ($this->_var['goods']['goods_style_name']): ?>
							<font class="f3"><?php echo $this->_var['goods']['goods_style_name']; ?></font><br />
							<?php else: ?>
							<font class="f3"><?php echo $this->_var['goods']['goods_name']; ?></font><br />
							<?php endif; ?>
					</a>
					 <?php if ($this->_var['goods']['goods_brief']): ?>
					<?php echo $this->_var['lang']['goods_brief']; ?><?php echo $this->_var['goods']['goods_brief']; ?><br />
					<?php endif; ?>
					</li>
					<li>
					<?php echo $this->_var['lang']['exchange_integral']; ?><font class="price"><?php echo $this->_var['goods']['exchange_integral']; ?></font><br />
					</li>
					</ul>
					<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
					</div>
        <?php endif; ?>
        </form>
    </div>
  <?php echo $this->fetch('library/pages.lbi'); ?>
	</div>
	
</div>

<?php echo $this->fetch('library/help.lbi'); ?>
<?php echo $this->fetch('library/page_footer.lbi'); ?>
</body>
</html>
